<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<p>
			用户<input type="text" id="name" value="" />
		</p>
		<p>
			手机<input type="text" id="phone" />
		</p>
		<p>
			<input type="button" id="btn" value="提交" />
		</p>
	</body>
	<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	<script type="text/javascript">
		$("#btn").click(function() {
			$.ajax({
				type: "get",
				url: "http://localhost:3000/register",
				async: true,
				data: {
					name: $("#name").val(),
					phone: $("#phone").val()
				},
				success: function(res) {

					console.log(res)
				}
			});
		})
	</script>

</html>